package com.xing.serviceedu.service;

import com.xing.serviceedu.entity.EduChapter;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xing.serviceedu.entity.chapter.ChapterVo;
import com.xing.serviceedu.entity.vo.CourseWebVo;

import java.util.List;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author xingfuao
 * @since 2022-01-09
 */
public interface EduChapterService extends IService<EduChapter> {

    //删除章节的方法
    boolean deleteChapter(String chapterId);

    //2.根据课程id删除章节
    void removeChapterByCourseId(String courseId);

    //3.得到章节视图VO通过课程id
    List<ChapterVo> getChapterVoByCourseId(String courseId);


    CourseWebVo getBaseCourseInfo(String courseId);
}
